package com.yunshipei.common.net.api;

import org.json.JSONObject;

import io.reactivex.Flowable;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface LoginAuthApi {
    @FormUrlEncoded
    @POST("/v2/companyInfo")
    Flowable<JSONObject> authCompany(@Field("cid") String cid);

    @FormUrlEncoded
    @POST("/v2/newLogin")
    Flowable<JSONObject> authUser(@Field("companyId") String companyId, @Field("uuid") String userName, @Field("password") String password, @Field("timestamp") long timeStamp, @Field("deviceInfo") String deviceInfo, @Field("sdk_sum") String sdkSum);

    @FormUrlEncoded
    @POST("/PortalService/WebService.asmx")
    Call<String> portalService(@Field("userID") String userID, @Field("userPwd") String userPwd, @Field("domain") String domain);
}
